package com.free.wang.demo02.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import com.free.wang.demo02.entity.Teacher;
import com.free.wang.demo02.mapper.TeacherMapper;

/**
 * @author admin
 * @Description ${Description}
 * @date 2020-07-04 16:22:00
 */

@Service
public class TeacherService {

    @Autowired
    private TeacherMapper teacherMapper;


    public int deleteByPrimaryKey(String tId) {
        return teacherMapper.deleteByPrimaryKey(tId);
    }


    public int insert(Teacher record) {
        return teacherMapper.insert(record);
    }


    public int insertSelective(Teacher record) {
        return teacherMapper.insertSelective(record);
    }


    public Teacher selectByPrimaryKey(String tId) {
        return teacherMapper.selectByPrimaryKey(tId);
    }


    public int updateByPrimaryKeySelective(Teacher record) {
        return teacherMapper.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKey(Teacher record) {
        return teacherMapper.updateByPrimaryKey(record);
    }

}
